package bb.lanxing.common.config;

public class UnitConstants {
    public static final String UNIT_BPM = "bpm";
    public static final String UNIT_BPM_BRITISH = "BPM";
    public static final String UNIT_CHAR_BLANK_SPACE = " ";
    public static final String UNIT_KCAL = "kcal";
    public static final String UNIT_KCAL_BRITISH = "KCAL";
    public static final String UNIT_POWER = "w";
    public static final String UNIT_POWER_BRITISH = "W";
    public static final String UNIT_RPM = "rpm";
    public static final String UNIT_RPM_BRITISH = "RPM";
    public static final String UNIT_SIZE_CM = "cm";
    public static final String UNIT_SIZE_FT = "Ft";
    public static final String UNIT_SIZE_INCH = "in";
    public static final String UNIT_SIZE_KM = "km";
    public static final String UNIT_SIZE_M = "m";
    public static final String UNIT_SIZE_MILES = "Mi";
    public static final String UNIT_SIZE_MM = "mm";
    public static final String UNIT_SIZE_YARD = "yard";
    public static final String UNIT_SPEED_KMH = "km/h";
    public static final String UNIT_SPEED_KPH = "kph";
    public static final String UNIT_SPEED_MPH = "MPH";
    public static final String UNIT_WEIGHT_KG = "kg";
    public static final String UNIT_WEIGHT_LIBRA = "lb";

    public static String getCadenceUnit(String str) {
        return (!str.equals("m") && str.equals("f")) ? " RPM" : " rpm";
    }

    public static String getHeartRateUnit(String str) {
        return (!str.equals("m") && str.equals("f")) ? " BPM" : " bpm";
    }
}
